#!/usr/bin/env python
# -*- coding: utf-8 -*-

from sanic.response import HTTPResponse,StreamingHTTPResponse

from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union

FilterValue = Union[float, int, str]
FilterValues = Union[FilterValue, List[FilterValue], Tuple[FilterValue]]
FormData = Dict[str, Any]
Granularity = Union[str, Dict[str, Union[str, float]]]
Metric = Union[Dict[str, str], str]
QueryObjectDict = Dict[str, Any]
VizData = Optional[Union[List[Any], Dict[Any, Any]]]
VizPayload = Dict[str, Any]

SanicResponse = Union[HTTPResponse,StreamingHTTPResponse]
